package com.ofd.sign.mode;

import com.ofd.sign.domin.EcertLockSignReq;
import com.ofd.sign.domin.EcertSealReq;
import com.ofd.sign.domin.SignRes;
import com.ofd.sign.domin.UKeyModeParamObj;
import org.springframework.stereotype.Component;

/**
 * @author wangrenjie
 */
@Component(ISignModeActuator.U_KEY_BEAN_ID)
public class UkeySignModeActuator implements ISignModeActuator<String, UKeyModeParamObj> {

    @Override
    public SignRes<String> seal(EcertSealReq<UKeyModeParamObj> req) {
        return SignRes.ok("测试OK");
    }

    @Override
    public SignRes<String> lockSign(EcertLockSignReq<UKeyModeParamObj> req) {
        return SignRes.ok("测试OK");
    }
}
